package com.itboye.mengwu.app.ui.mymeng;

import java.util.ArrayList;

import android.annotation.SuppressLint;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.itboye.core.object.BaseActivity;
import com.itboye.mengwu.R;
import com.itboye.mengwu.app.adapter.ZengAdapter;
import com.itboye.mengwu.data.model.ZengBean;

public class ZengActivity extends BaseActivity {
	ArrayList<ZengBean> list;
	ZengAdapter adapter;
	private ListView list_zeng;
	private TextView txt_title;
	private ImageView back;
	private String url[] = { "http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg" };
	private String urle[] = { "http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg" };
	private String urlw[] = { "http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg",
			"http://imgx.xiawu.com/xzimg/i4/i6/T1b2NEXcNxXXaeqTIV_022100.jpg" };

	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.activity_zengwuxian;
	}

	@Override
	public void onMyCreate() {
		// TODO Auto-generated method stub
		onZeng();
		txt_title.setText("我的增无限");
		txt_title.setTextColor(R.color.white);
		txt_title.setTextSize(20);
		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				finish();
			}
		});

	}

	public void onZeng() {
		list = new ArrayList<ZengBean>();
		for (int i = 0; i < url.length; i++) {
			ZengBean bean = new ZengBean();
			bean.setTime("2016");
			bean.setTitle("增无限");
			bean.setImg(url[i]);
			bean.setImge(urle[i]);
			bean.setImgw(urlw[i]);
			list.add(bean);
		}
		adapter = new ZengAdapter(list, ZengActivity.this);
		list_zeng.setAdapter(adapter);
	}

}
